package top.marken.onlineclass.service;

import top.marken.onlineclass.model.entity.VideoOrder;

import java.util.List;

public interface VideoOrderService {
    int SAVE_CODE_SUCCESS = 0;
    int SAVE_CODE_ALREADY_EXIST = 1;
    int SAVE_CODE_FAIL = -1;
    int SAVE_CODE_ERROR = -2;

    VideoOrder findVideoOrder(int videoId,int state,int userId);
    int save(int videoId, int userId, int state);
    List<VideoOrder> listVideoOrderByUserId(int userId, int state);
}
